import request from "@/utils/request"

// 查询全部员工信息
export const getAllEmps = () => request.get('/emps/list')

// 分页查询员工信息
export const getEmpList = (params) => request.get('/emps', { params })

// 添加员工信息
export const addEmps = (data) => request.post('/emps', data)

// 根据id查询员工信息
export const getEmpById = (id) => request.get(`/emps/${id}`)

// 修改员工信息
export const updateEmp = (data) => request.put('/emps', data)

 // 删除员工信息
 export const deleteEmp = (ids) => request.delete(`/emps?ids=${ids}`)